<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set value="${pageContext.request.contextPath}" var="path" scope="page"/>
<!DOCTYPE html>
<html lang="en">
<head>
	<!--
		Charisma v1.0.0

		Copyright 2012 Muhammad Usman
		Licensed under the Apache License v2.0
		http://www.apache.org/licenses/LICENSE-2.0

		http://usman.it
		http://twitter.com/halalit_usman
	-->
	<meta charset="utf-8">
	<title>活动管理界面</title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta name="description" content="Charisma, a fully featured, responsive, HTML5, Bootstrap admin template.">
	<meta name="author" content="Muhammad Usman">

	<!-- The styles -->
	<link id="bs-css" href="${path}/css/bootstrap-cerulean.css" rel="stylesheet">
	<style type="text/css">
	body {
		padding-bottom: 40px;
	}
	.sidebar-nav {
		padding: 9px 0;
	}
	select{
		width: 120px;
	}
	</style>
	<link href="${path}/css/bootstrap-responsive.css" rel="stylesheet">
	<link href="${path}/css/charisma-app.css" rel="stylesheet">
	<link href="${path}/css/jquery-ui-1.8.21.custom.css" rel="stylesheet">
	<link href='${path}/css/fullcalendar.css' rel='stylesheet'>
	<link href='${path}/css/fullcalendar.print.css' rel='stylesheet'  media='print'>
	<link href='${path}/css/chosen.css' rel='stylesheet'>
	<link href='${path}/css/uniform.default.css' rel='stylesheet'>
	<link href='${path}/css/colorbox.css' rel='stylesheet'>
	<link href='${path}/css/jquery.cleditor.css' rel='stylesheet'>
	<link href='${path}/css/jquery.noty.css' rel='stylesheet'>
	<link href='${path}/css/noty_theme_default.css' rel='stylesheet'>
	<link href='${path}/css/elfinder.min.css' rel='stylesheet'>
	<link href='${path}/css/elfinder.theme.css' rel='stylesheet'>
	<link href='${path}/css/jquery.iphone.toggle.css' rel='stylesheet'>
	<link href='${path}/css/opa-icons.css' rel='stylesheet'>
	<link href='${path}/css/uploadify.css' rel='stylesheet'>
	<link href='${path}/css/jConfirm.css' rel='stylesheet'>
	<link href='${path}/css/pagination.css' rel='stylesheet'>

	<!-- The HTML5 shim, for IE6-8 support of HTML5 elements -->
	<!--[if lt IE 9]>
	  <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
	  <![endif]-->

	  <!-- The fav icon -->
	  

	</head>

	<body>



		<div class="navbar">
			<div class="navbar-inner">
				<div class="container-fluid">
					<a class="btn btn-navbar" data-toggle="collapse" data-target=".top-nav.nav-collapse,.sidebar-nav.nav-collapse">
						<span class="icon-bar"></span>
						<span class="icon-bar"></span>
						<span class="icon-bar"></span>
					</a>
					<a class="brand" href="/longai/event/eventManager">  <span>后台管理系统</span></a>


					<!-- user dropdown starts -->

					<!-- user dropdown ends -->
				</div>
			</div>
		</div>
		<!-- topbar ends -->
		<div class="container-fluid">
			<div class="row-fluid" >				
				<!-- left menu starts -->
			<div class="span2 main-menu-span">
				<div class="well nav-collapse sidebar-nav">

					<ul class="nav nav-tabs nav-stacked main-menu">
						<li>
							<a class="ajax-link" href="/longai/event/eventManager">
								<i class="icon-home"></i>
								<span class="hidden-tablet">活动管理</span>
							</a>
						</li>				
                    </ul>
                    <ul class="nav nav-tabs nav-stacked main-menu">
						<li>
							<a class="ajax-link" href="/longai/new/newManager">
								<i class="icon-home"></i>
								<span class="hidden-tablet">心灵鸡汤管理</span>
							</a>
						</li>				
                    </ul>
                    
					
				</div><!--/.well -->
			</div><!--/span-->
			<!-- left menu ends -->			
				<div id="content" class="span10">
					<!-- content starts -->
					<div>
						<ul class="breadcrumb">
							<li>
								<a href="/longai/event/eventManager">首页</a> <span class="divider">/</span>
							</li>
							<li>
								<a href="/longai/event/eventManager">活动管理</a>
							</li>
						</ul>
					</div>

					<div class="row-fluid sortable">		
						<div class="box span12">
							<div class="box-header well" data-original-title>
								<h2><i class="icon-user"></i> 活动管理</h2>
							</div>
							<div class="box-content">
								<div class ="row-fluid">
									<div class="span12">
										<div class="dataTables_filter" id="DataTables_Table_0_filter">
											
											
											
												<a class="btn btn-primary" href="/longai/event/addEvent" style="margin-left: 10px;">
												<i class=""></i>新增</a>
										</div>
									</div>
								</div>
								<table class="table table-striped table-bordered bootstrap-datatable " >
									<thead>
										<tr>
										<!-- 	<th style="text-align: center;"><input id="selectAll" type="checkbox" ></th> -->
											<th>活动标题</th>
											<th>活动发起者</th>
											<th>活动开始时间</th>
											<th>活动结束时间</th>
											<th>活动状态</th>
											<th>活动内容</th>
											<th>活动权限</th>
											<th>活动地点</th>
											<th>操作</th>
										</tr> 
									</thead>
									<tbody>
									<c:forEach items="${events}" var="event">
										<tr>
											<!-- <td style="text-align: center;"><input type="checkbox" name="userIdList"></td> -->
											<td>${event.title }</td>
											<td>${event.sponsors}</td>
											<td>${event.starttime}</td>
											<td>${event.endtime}</td>
											<td>${event.status}</td>
											<td>${event.contenturl}</td>
											<td>${event.permission}</td>
											<td>${event.location}</td>
											<td>
												<a class="btn btn-success" href="/longai/event/addEvent?eventId=${event.eventId}">
													<i class="icon-edit icon-white"></i>  
													修改                                           
												</a>
												<a class="btn btn-danger ask" href="/longai/event/deleteEvent?eventId=${event.eventId}">
													<i class="icon-trash icon-white"></i> 
													删除
												</a>
											</td>
										</tr>	
										</c:forEach>									
									</tbody>
								</table>
								     
							</div>
							<div class="modal hide fade" id="remindModal">
								<div class="modal-header">
									<button type="button" class="close" data-dismiss="modal">×</button>
									<h3>提示信息</h3>
								</div>
								<div class="modal-body">
									<p>请先选择要删除的记录...</p>
								</div>
								<div class="modal-footer">
									<a href="#" class="btn btn-primary" data-dismiss="modal">确定</a>	
								</div>
							</div>
							<div class="modal hide fade" id="confirmModal">
								<div class="modal-header">
									<button type="button" class="close" data-dismiss="modal">×</button>
									<h3>提示信息</h3>
								</div>
								<div class="modal-body">
									<p>你确定删除所选项吗?</p>
								</div>
								<div class="modal-footer">
									<a href="#" class="btn" data-dismiss="modal">取消</a>
									<a href="#" class="btn btn-primary" data-dismiss="modal">确定</a>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>

	<!-- external javascript
	================================================== -->
	<!-- Placed at the end of the document so the pages load faster -->

	<!-- jQuery -->
	<script src="${path}/js/jquery-1.7.2.min.js"></script>
	<!-- jQuery UI -->
	<script src="${path}/js/jquery-ui-1.8.21.custom.min.js"></script>
	<!-- transition / effect library -->
	<!-- transition / effect library -->
	<script src="${path}/js/bootstrap.js"></script>
	<!-- alert enhancer library -->
	<!-- library for cookie management -->
	<script src="${path}/js/jquery.cookie.js"></script>
	<!-- calander plugin -->
	<script src='${path}/js/fullcalendar.min.js'></script>
	<!-- data table plugin -->
	<script src='${path}/js/jquery.dataTables.min.js'></script>

	<!-- chart libraries start -->
	<script src="${path}/js/excanvas.js"></script>
	<script src="${path}/js/jquery.flot.min.js"></script>
	<script src="${path}/js/jquery.flot.pie.min.js"></script>
	<script src="${path}/js/jquery.flot.stack.js"></script>
	<script src="${path}/js/jquery.flot.resize.min.js"></script>
	<!-- chart libraries end -->

	<!-- select or dropdown enhancer -->
	<script src="${path}/js/jquery.chosen.min.js"></script>
	<!-- checkbox, radio, and file input styler -->
	<script src="${path}/js/jquery.uniform.min.js"></script>
	<!-- plugin for gallery image view -->
	<script src="${path}/js/jquery.colorbox.min.js"></script>
	<!-- rich text editor library -->
	<script src="${path}/js/jquery.cleditor.min.js"></script>
	<!-- notification plugin -->
	<script src="${path}/js/jquery.noty.js"></script>
	<!-- file manager library -->
	<script src="${path}/js/jquery.elfinder.min.js"></script>
	<!-- star rating plugin -->
	<script src="${path}/js/jquery.raty.min.js"></script>
	<!-- for iOS style toggle switch -->
	<script src="${path}/js/jquery.iphone.toggle.js"></script>
	<!-- autogrowing textarea plugin -->
	<script src="${path}/js/jquery.autogrow-textarea.js"></script>
	<!-- multiple file upload plugin -->
	<script src="${path}/js/jquery.uploadify-3.1.min.js"></script>
	<!-- history.js for cross-browser state change on ajax -->
	<script src="${path}/js/jquery.history.js"></script>
	<!-- application script for Charisma demo -->
	<script src="${path}/js/charisma.js"></script>
	
	<script src="${path}/js/index.js"></script>
	<script src="${path}/js/listInfo.js"></script>
	<script src="${path}/js/jconfirmaction.js"></script>


</body>
</html>
